Skip to content

Fix #18118.#18119

Draft
dkocher wants to merge 1 commit into
masterfrom
feature/GH-18118
Draft

Fix #18118.#18119
dkocher wants to merge 1 commit into
masterfrom
feature/GH-18118

Conversation

@dkocher
Copy link
Copy Markdown
Contributor

@dkocher dkocher commented May 19, 2026

No description provided.

@dkocher dkocher added this to the 9.5 milestone May 19, 2026
@dkocher dkocher requested a review from a team as a code owner May 19, 2026 15:57
Copilot AI review requested due to automatic review settings May 19, 2026 15:57
@dkocher dkocher marked this pull request as draft May 19, 2026 15:58
@dkocher dkocher linked an issue May 19, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes #18118 by enabling WebDAV locking for Nextcloud and ownCloud sessions when OCS capabilities report locking support. Previously the profiles disabled WebDAV locking globally via the webdav.lock.enable=false property, which caused the Lock feature lookup to return null. Now the sessions explicitly return a DAVLockFeature instance when ocs.locking is true, and the profile-level override is removed.

Changes:

  • Return DAVLockFeature from _getFeature(Lock.class) in both NextcloudSession and OwncloudSession when OCS reports locking is supported.
  • Remove the webdav.lock.enable=false property override from the Nextcloud and ownCloud default profiles.
  • Clean up now-unused DAVDirectoryFeature and Directory imports in NextcloudSession.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
nextcloud/src/main/java/ch/cyberduck/core/nextcloud/NextcloudSession.java Return DAVLockFeature for Lock feature when OCS locking is enabled; remove unused imports.
owncloud/src/main/java/ch/cyberduck/core/owncloud/OwncloudSession.java Add DAVLockFeature import and return it for the Lock feature when OCS locking is enabled.
profiles/default/Nextcloud.cyberduckprofile Remove webdav.lock.enable=false profile override so WebDAV locking is no longer globally disabled.
profiles/default/ownCloud.cyberduckprofile Remove webdav.lock.enable=false profile override so WebDAV locking is no longer globally disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dkocher dkocher modified the milestones: 9.5, 9.6 May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable file lock support when advertised in OCS capabilities

2 participants